import request from '@/utils/request'
//用户登陆
export const userLoginService = (data) => request.post('/user/login', data)
//用户管理数据列表
export const userListService = (params) =>
  request.get('/user/userlist', { params })
//删除用户数据
export const userDeleteService = (id) =>
  request.delete('/user/delete', { params: { id } })
//添加用户
export const userAddService = (data) => request.post('/user/add', data)
//根据id查询用户信息（用于回显用户信息）
export const userGetUserInfoService = (id) => request.get(`user/get/${id}`)
//修改用户信息
export const userModifyService = (data) => request.put('/user/modify', data)
